package com.rickpan.dto.request;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;

/**
 * 转移团队所有权请求
 */
@Schema(description = "转移团队所有权请求")
public class TransferOwnershipRequest {

    @Schema(description = "新所有者用户ID", example = "2", required = true)
    @NotNull(message = "新所有者用户ID不能为空")
    private Long newOwnerId;

    public TransferOwnershipRequest() {}

    public TransferOwnershipRequest(Long newOwnerId) {
        this.newOwnerId = newOwnerId;
    }

    public Long getNewOwnerId() {
        return newOwnerId;
    }

    public void setNewOwnerId(Long newOwnerId) {
        this.newOwnerId = newOwnerId;
    }

    @Override
    public String toString() {
        return "TransferOwnershipRequest{" +
                "newOwnerId=" + newOwnerId +
                '}';
    }
}
